package Service;

import Entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface UserService extends IService<User> {
    User getUserById ( Integer id );

    List<User> getAllUser ( );

    Boolean updateUserInfo ( User user );

    Boolean saveUser ( User user );

    Boolean deleteUserById ( Integer id );

    User login ( Integer id , String password );
}
